<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/security/tags"
	prefix="security"%>
<%
    String path = request.getContextPath();
			String basePath = request.getScheme() + "://"
					+ request.getServerName() + ":" + request.getServerPort()
					+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>首页</title>
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script src="plugins/seajs/sea.js" id="seajsnode" type="text/javascript"></script>
<script src="plugins/seajs/config.js" type="text/javascript"></script>
<script type="text/javascript">
</script>
</head>

<body>
	<security:authorize access="hasAnyRole('user','admin')">
		<h1>${SPRING_SECURITY_CONTEXT.authentication.principal.username }</h1>
	</security:authorize>
</body>
</html>
